FROM openjdk:8-jdk-alpine
VOLUME /tmp
ADD server-gateway-zuul-0.0.1-SNAPSHOT.jar app.jar
#RUN bash -c touch /app.jar
ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom","-jar","/app.jar"]

#1:创建docker镜像
#mvn  -e package docker:build
#2:在容器中运营镜像
#docker run -d  --net=host --name springcloud-zuul image-app/server-gateway-zuul 
#--net=host
#3:查看运行
#docker ps -a